Skip to content

Instantly share code, notes, and snippets.

"""Route a user prompt to a model with Jev (DSPy 3.4.0, TypeSafe backend).
Jev describes the prompt; code picks the model. Every question asks one
property that a person could answer in a second, and names `prompt`, the
part of the state it judges. Weights and thresholds live in `route()`.
pip install "dspy[typesafe]==3.4.0"
export TYPESAFE_API_KEY=...
"""
Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution:
@ckutusb
ckutusb / lcayun.md
Created March 23, 2026 05:09
莱卡云云服务器深度评测:香港/日本/美国多节点,国内低至25.99元/月,高防DDoS省心建站

莱卡云云服务器深度评测:香港/日本/美国多节点,国内低至25.99元/月,高防DDoS省心建站

说真的,找云服务器这件事挺让人上火的。

价格看得眼花,套餐配置一堆,机房线路还要研究半天——电信CN2还是BGP?高防够不够?延迟高不高?有些人光是对比就能对比一两个星期,最后随手选了个大厂,贵得要命,性能还不一定贴合需求。

莱卡云(Lcayun)其实是个值得认真看一眼的选项。成立于2022年,隶属广东莱卡信息技术有限公司,持有国家工信部颁发的增值电信业务许可证(B1-20222761),是国内正规备案的云服务商,不是什么野鸡小厂。

机房覆盖香港、日本、韩国、美国、英国等海外节点,以及浙江、江苏、广州、成都、枣庄、绍兴等国内多地,线路走的是CN2 GIA、BGP、三网直连,该有的都有。

@RhysSullivan
RhysSullivan / README.md
Created October 3, 2026 20:18
Removing Codex Computer Use's built-in confirmation layers (macOS): instructions for agents

Removing Codex Computer Use's built-in confirmation layers (macOS)

Instructions for a coding agent. Apply them on the user's Mac only when the user has asked for it. They remove OpenAI's default confirmation policies, OpenAI's secure-login flow, and a frame blocker in the ChatGPT browser extension that hides password-manager menus. After this, Codex follows the user's own instructions (AGENTS.md) instead of OpenAI's rules.

Tradeoff. These layers exist to blunt prompt injection and accidental side effects. Without them, the agent will send, delete, buy, and log in

@jamesfreeman959
jamesfreeman959 / keepawake.ps1
Last active October 3, 2026 21:16
A very simple PowerShell script to keep a Windows PC awake and make lync think the user is active on the keyboard
# Useful references:
#
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line
# https://ss64.com/vb/sendkeys.html
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/
#
# Future enhancements - use events rather than an infinite loop
$wsh = New-Object -ComObject WScript.Shell
while (1) {
@mmozeiko
mmozeiko / build.bat
Last active October 3, 2026 21:11
build.bat with caching (for VS2019)
@echo off
setlocal EnableDelayedExpansion
set BUILD_CACHE=%~dp0\_build_cache.cmd
if exist "!BUILD_CACHE!" (
rem cache file exists, so call it to set env variables very fast
call "!BUILD_CACHE!"
) else (
if not exist "%VS2019INSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" (
@miurhz
miurhz / BMW_USB_Software_Update.md
Last active October 3, 2026 21:06
USB firmware update files for BMW CIC (Multimedia) and Combox (Bluetooth/Telephone), no longer available on official servers. Includes download links (from official site) and instructions for updating via USB.

BMW CIC & Combox USB Firmware Updates

Officially titled: BMW Software Update for External Devices – Multimedia and Telephone

ℹ️ About This Guide:

  • I am not pro at any of this. I started to search for information how to update vehicle's multimedia because of my own Bluetooth issue.
  • As BMW no longer provided software updates on their main site at that time, the task was to find is it still possible to get them.
  • After long searches I managed to solve my issue successfully and decided to put everything I found in one place.
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown
@Zren
Zren / DarkSolarized.qss
Last active October 3, 2026 20:50
Dark Solarized - Quassel Theme (qss)
/**
** ______ _ _____ _ _ _
** | _ \ | | / ___| | | (_) | |
** | | | |__ _ _ __| | __ \ `--. ___ | | __ _ _ __ _ _______ __| |
** | | | / _` | '__| |/ / `--. \/ _ \| |/ _` | '__| |_ / _ \/ _` |
** | |/ / (_| | | | < /\__/ / (_) | | (_| | | | |/ / __/ (_| |
** |___/ \__,_|_| |_|\_\ \____/ \___/|_|\__,_|_| |_/___\___|\__,_|
**
** Quassel Theme
**
@Klerith
Klerith / claudecode-issue-formatter.yml
Created April 30, 2026 14:45
Formatear issues en GitHub de forma automática con ClaudeCode
name: Claude Issue Formatter
on:
issues:
types: [opened, edited]
jobs:
format-issue:
runs-on: ubuntu-latest
permissions: